import Vue from 'vue';
import content from './content';                  //内容
import currencyInput from './currency-input';       //金额组件
import footer from './footer';                    //页脚
import header from './header';                     //页头
import icon from './icon';                         //icon
// import panel from './panel'                          //标题条
//import transformation from './transformation'        //数据转换
import progressBar from './progress-bar';             //进度条
import transactionBar from './transaction-bar';         //交易进度条
// import sectorProgress from './sector-progress'       //购买进度条
import rightTools from './right-tools';            //右边工具栏
import warmTips from './warm-tips';                 //温馨提示内容
import btnVerification from './btn-verification';    //验证码按钮
import refreshRoute from './refresh-route';   //刷新路由
import shortcutMenu from './shortcutMenu'
import tree from './tree';     //角色菜单树
import upload from './upload';     //快捷菜单设置
import authModeltree from './authModeltree';    //授权模式树
import branchTree from './branchTree';
import businessControlTree from './businessControlTree';
import roleTree from './roleTree';
import authDialog from './authDialog';  //临柜授权弹窗
import branchDialog from './branchDialog';   //机构弹窗
import breadcrumb from './breadcrumb';//提示当前页面

const components = [
  content,
  currencyInput,
  footer,
  header,
  icon,
  // panel,
  //transformation,
  progressBar,
  transactionBar,
  // sectorProgress,
  rightTools,
  warmTips,
  btnVerification,
  refreshRoute,
  shortcutMenu,
  tree,
  upload,
  authModeltree,
  branchTree,
  businessControlTree,
  roleTree,
  authDialog,
  branchDialog,
  breadcrumb,
]

let install = (Vue) => {
  components.map(component => {
    let componentName = "ynet-" + component.name
    Vue.component(componentName, component);
  })
}
install(Vue)
